/**
 * @Classname Test
 * @Description TODO
 * @Date 2023/8/15 16:03
 * @Created by wpc
 */
public class TestBuilder {

    public static void main(String[] args) {
        Computer computer = new ComputerBuilder().setCpu("cpu").setFan("风扇").setMainBoard("主板").build();
        System.out.println(computer.getCpu());
        System.out.println(computer.getFan());
        System.out.println(computer.getMainBoard());

    }
}
